#!/bin/sh

#################################
#安装svn同步client需要的软件包
#
#
#################################

#安装python开发包和gcc
yum install python-devel python-setuptools gcc -y
for pkg in python-devel python-setuptools gcc
do
	cmd=$(rpm -q $pkg)
	#未安装包
	if [ $? -eq 1 ]
	then
		exit
	fi
done

mkdir -p /data/app/rsync
mkdir -p /data/app/rsync/bin

cd /tmp
wget http://42.62.12.151/zope.interface-3.5.3.tar.gz
tar zvxf zope.interface-3.5.3.tar.gz
cd zope.interface-3.5.3
python setup.py install

cd /tmp
wget http://42.62.12.151/Twisted-11.0.0.tar.bz2
tar jvxf Twisted-11.0.0.tar.bz2
cd Twisted-11.0.0
python setup.py install

cd /tmp
wget http://42.62.12.151/meld3-0.6.10.tar.gz
tar zvxf meld3-0.6.10.tar.gz
cd meld3-0.6.10
python setup.py install

cd /tmp
wget http://42.62.12.151/elementtree-1.2.7-20070827-preview.zip
unzip elementtree-1.2.7-20070827-preview.zip 
cd elementtree-1.2.7-20070827-preview
python setup.py install

cd /tmp
wget http://42.62.12.151/supervisor-3.0.tar.gz
tar zvxf supervisor-3.0.tar.gz 
cd supervisor-3.0
sed -i "71d" setup.py  
python setup.py install
